<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <link rel="stylesheet" href="${root}/Static/css/pintuer.css">
    <link rel="stylesheet" href="${root}/Static/css/admin.css">
    <script src="${root}/Static/js/jquery.js"></script>
    <script src="${root}/Static/js/pintuer.js"></script>
    <script src="${root}/Static/js/respond.js"></script>
    <script src="${root}/Static/js/admin.js"></script>
    <script type="text/javascript">

    function getAjax(id)
    {
    	$.ajax({  
            type: "post",  
            url: id,
            dataType: "text", 
            success: function(json) { 
                $("#show").val(json);
            },  
            error: function(json) {  
                //alert("error!"); 
                $("#show").val(json)
            }  
        }) 
    }
    
     function postAjax(id)
    {
    	var strs= new Array(); 
    	strs=id.split("/");
    	if(strs.length>1)
    		{
    		$.ajax({  
                type: "post",  
                url: id,
                data: $("#"+strs[0]+strs[1]).serialize(),//传输表单
                dataType: "text", 
                success: function(json) { 
                    $("#show").val(json);
                },  
                error: function(json) {  
                    //alert("error!");
                	$("#show").val(json);
                }  
            }) 
    		}
    } 
     
     function postAjaxId(id)
     {
     	var strs= new Array(); 
     	strs=id.split("/");
     	if(strs.length>1)
     		{
     		var u=id+"/"+$("#"+strs[0]+strs[1]+"id").val();
     		$.ajax({  
                 type: "post",  
                 url: u,
                 data: $("#"+strs[0]+strs[1]).serialize(),//传输表单
                 dataType: "text", 
                 success: function(json) { 
                     $("#show").val(json);
                 },  
                 error: function(json) {  
                     //alert("error!");  
                	 $("#show").val(json);
                 }  
             }) 
     		}
     }  
     
    
    </script>
</head>
<body>
<div class="admin-panel">
	<div class="tab">

<textarea rows="10" cols="185" id="show"> </textarea>

<table>

<tr>
<td width="15%"><h3>物理设备管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>设备管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>房间管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>面板管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>情景模式管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>情景配置管理&nbsp&nbsp&nbsp&nbsp</h3></td>
<td width="15%"><h3>网关管理&nbsp&nbsp&nbsp&nbsp</h3></td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">
<form id="Phymappingfind">
	      <input name="is_app" value="1" type="hidden">
	      <div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="设备id"></div>
	      <div class="label"><label>所属设备id:</label></div><input class="input" name="phymapping.loc_id" style="width:130px;" placeholder="请填写所属设备id">	
	      <div class="label"><label>物理地址:</label></div><input class="input" name="phymapping.phy_addr" style="width:130px;" placeholder="请填写物理地址">	
	      <div class="label"><label>mac地址:</label></div><input class="input" name="phymapping.mac_addr" style="width:130px;" placeholder="请填写mac地址">	
	      <div class="label"><label>类型:</label></div><input class="input" name="phymapping.type" style="width:130px;" placeholder="请填写类型">	
	      <div class="label"><label>线路:</label></div><input class="input" name="phymapping.route" style="width:130px;" placeholder="请填写线路">	
	      <div class="label"><label>实线虚线:</label></div><input class="input" name="phymapping.tag" style="width:130px;" placeholder="请填写实线/虚线">
	      <div class="label"><label>描述:</label></div><input class="input" name="phymapping.describe" style="width:130px;" placeholder="请填写描述">
	      <div class="label"><label>状态:</label></div><input class="input" name="phymapping.status" style="width:130px;" placeholder="请填写状态（工作/保修/待机）">
          <input class="button bg-main" type="button" onclick="postAjax('Phymapping/find')" value="查找物理设备">
</form>

</td>

<td width="15%">
<form id="Equipmentfind">
	      <input name="is_app" value="1" type="hidden">
	      <div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="设备id"></div>
	      <div class="label"><label>设备名称:</label></div><div class="field"><input class="input" name="equipment.name" style="width:130px;" placeholder="请填写名称">	</div>
	      <div class="label"><label>房间号:</label></div><div class="field"><input class="input" name="equipment.room_id" style="width:130px;" placeholder="请填写房间号"></div>	
	      <div class="label"><label>设备序号:</label></div><div class="field"><input class="input" name="equipment.num_in_room" style="width:130px;" placeholder="请填写房内设备序号"></div>	
	      <div class="label"><label>面板序号:</label></div><div class="field"><input class="input" name="equipment.panel_id" style="width:130px;" placeholder="请填写所在面板序号">	</div>
	      <div class="label"><label>状态:</label></div><div class="field"><input class="input" name="equipment.status" style="width:130px;" placeholder="请填写状态（工作/保修/待机）"></div>	
	      <div class="label"><label>参数1:</label></div><div class="field"><input class="input" name="equipment.param1" style="width:130px;" placeholder="请填写设备参数"></div>
	      <div class="label"><label>参数2:</label></div><div class="field"><input class="input" name="equipment.param2" style="width:130px;" placeholder="请填写设备参数"></div>
	      <div class="label"><label>参数3:</label></div><div class="field"><input class="input" name="equipment.param3" style="width:130px;" placeholder="请填写设备参数"></div>
	      <div class="label"><label>参数4:</label></div><div class="field"><input class="input" name="equipment.param4" style="width:130px;" placeholder="请填写设备参数"></div>
	      <div class="label"><label>参数5:</label></div><div class="field"><input class="input" name="equipment.param5" style="width:130px;" placeholder="请填写设备参数">	</div>
	      <input class="button bg-main" type="button" onclick="postAjax('Equipment/find')" value="查找设备">
</form>

</td>
<td width="15%">
<form  id="Roomfind">
			<input name="is_app" value="1" type="hidden">
			<div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="房间id"></div>
			<div class="label"><label>名称:</label></div><div class="field"><input class="input" name="room.name" style="width:130px;" placeholder="请填写名称"></div>	            
            <div class="label"><label>城市:</label></div><div class="field"><input class="input" name="room.city" style="width:130px;" placeholder="请填写城市"></div>
            <div class="label"><label>环境:</label></div><div class="field"><input class="input" name="room.environment" style="width:130px;" placeholder="请填写环境（酒店/家居/办公室/单品）"></div>
            <div class="label"><label>类型:</label></div><div class="field"><input class="input" name="room.type" style="width:130px;" placeholder="请填写类型（客厅/卧室/办公室/会议室）"></div>
            <div class="label"><label>大楼:</label></div><div class="field"><input class="input" name="room.building" style="width:130px;" placeholder="请填写大楼"></div>
            <div class="label"><label>楼层:</label></div><div class="field"><input class="input" name="room.floor" style="width:130px;" placeholder="请填写楼层"></div>
            <div class="label"><label>房间序号:</label></div><div class="field"><input class="input" name="room.num_in_floor" style="width:130px;" placeholder="请填写层中编号"></div>  
			<input class="button bg-main" type="button" onclick="postAjax('Room/find')" value="查找房间">	
</form>

</td>
<td width="15%">
<form  id="Panelfind">
			<input name="is_app" value="1" type="hidden">
			   <div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="面板id"></div>
			<div class="label"><label>面板名称:</label></div><div class="field"><input class="input" name="panel.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>面板类型:</label></div><div class="field"><input class="input" name="panel.type" style="width:130px;" placeholder="请填写类型"></div>
			<input class="button bg-main" type="button" onclick="postAjax('Panel/find')" value="查找面板">	
</form>

</td>
<td width="15%">
<form id="Scenefind">
			<input name="is_app" value="1" type="hidden">
			<div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="场景id"></div>
			<div class="label"><label>场景名称:</label></div><div class="field"><input class="input" name="scene.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>图标id:</label></div><div class="field"><input class="input" name="scene.image_id" style="width:130px;" placeholder="请填写图标id"></div>	

			<input class="button bg-main" type="button" onclick="postAjax('Scene/find')" value="查找情景">

</form>
             
</td>
<td width="15%">
<form  id="Sceneconfigfind">
			<input name="is_app" value="1" type="hidden">
			<div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="场景配置id"></div>
			<div class="label"><label>场景编号:</label></div><div class="field"><input class="input" name="sceneconfig.scene_id" style="width:130px;" placeholder="请填写场景id"></div>
            <div class="label"><label>设备编号:</label></div><div class="field"><input class="input" name="sceneconfig.equipment_id" style="width:130px;" placeholder="请填写设备编号"></div>
            <div class="label"><label>状态:</label></div><div class="field"><input class="input" name="sceneconfig.status" style="width:130px;" placeholder="请填写状态"></div>
            <div class="label"><label>设备参数1:</label></div><div class="field"><input class="input" name="sceneconfig.param1" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数2:</label></div><div class="field"><input class="input" name="sceneconfig.param2" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数3:</label></div><div class="field"><input class="input" name="sceneconfig.param3" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数4:</label></div><div class="field"><input class="input" name="sceneconfig.param4" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数5:</label></div><div class="field"><input class="input" name="sceneconfig.param5" style="width:130px;" placeholder="请填写设备参数"></div>
			<input class="button bg-main" type="button" onclick="postAjax('Sceneconfig/find')" value="查找情景配置">	

</form>
</td>
<td width="15%">
<form  id="Netctlfind">
        <input name="is_app" value = "1" type="hidden">
        <div class="label"><label>id:</label></div><div class="field"><input class="input" name="id" style="width:130px;" placeholder="网关id"></div>
        <div class="label"><label>ip地址:</label></div><input class="input" name="netcontroller.ip_address" style="width:130px;" placeholder="请填写IP地址">
        <div class="label"><label>端口:</label></div><input class="input" name="netcontroller.port" style="width:130px;" placeholder="请填写端口">
        <div class="label"><label>main:</label></div><input class="input" name="netcontroller.main" style="width:130px;" placeholder="请填写main">
        <div class="label"><label>地址:</label></div><input class="input" name="netcontroller.address" style="width:130px;" placeholder="请填写地址">
        <div class="label"><label>域名:</label></div><input class="input" name="netcontroller.domain" style="width:130px;" placeholder="请填写域名">
        <div class="label"><label>net_select:</label></div><input class="input" name="netcontroller.net_select" style="width:130px;" placeholder="请填写net_select">
        <input class="button bg-main" type="button" onclick="postAjax('Netctl/find')" value="查找网关">

</form>
</td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">
<form>
	      <input name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="getAjax('Phymapping/getlist')" value="获取物理设备">
</form>
<!--获取时提供的是getAjax接口。JS方法中提供方法路径。  -->

</td>

<td width="15%">
<form  method="post">
	      <input name="is_app" value="1" type="hidden">	
	      <input class="button bg-main" type="button" onclick="getAjax('Equipment/getlist')" value="获取设备">

</form>
</td>

<td width="15%">
<form  method="post" >
			<input name="is_app" value="1" type="hidden">	
			<input class="button bg-main" type="button" onclick="getAjax('Room/getlist')" value="获取房间列表">
</form>
</td>

<td width="15%">
 <form  method="post" >
	      <input name="is_app" value="1" type="hidden">	
	      <input name="id" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="getAjax('Panel/getlist')" value="获取面板列表">
</form> 
</td>

<td width="15%">
<form  method="post" >
			<input name="is_app" value="1" type="hidden">
			<input class="button bg-main" type="button" onclick="getAjax('Scene/getlist')" value="获取情景列表">	
</form>
</td>

<td width="15%">
<form action="./Sceneconfig/getlist" method="post">
			<input name="is_app" value="1" type="hidden">
			<input class="button bg-main" type="button" onclick="getAjax('Sceneconfig/getlist')" value="获取情景配置">	

</form>
</td>

<td width="15%">
<form  method="post" >
        <input name="is_app" value = "1" type="hidden">
        <input class="button bg-main" type="button" onclick="getAjax('Netctl/getlist')" value="获取网关列表">

</form>
</td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">
<form  method="post" id="Phymappingcreate">
	      <input name="is_app" value="1"  type="hidden">	
	      <div class="label"><label>所属设备id:</label></div><input class="input" name="phymapping.loc_id" style="width:130px;" placeholder="请填写所属设备id">	
	      <div class="label"><label>物理地址:</label></div><input class="input" name="phymapping.phy_addr" style="width:130px;" placeholder="请填写物理地址">	
	      <div class="label"><label>mac地址:</label></div><input class="input" name="phymapping.mac_addr" style="width:130px;" placeholder="请填写mac地址">	
	      <div class="label"><label>类型:</label></div><input class="input" name="phymapping.type" style="width:130px;" placeholder="请填写类型">	
	      <div class="label"><label>线路:</label></div><input class="input" name="phymapping.route" style="width:130px;" placeholder="请填写线路">	
	      <div class="label"><label>实线虚线:</label></div><input class="input" name="phymapping.tag" style="width:130px;" placeholder="请填写实线/虚线">
	      <div class="label"><label>描述:</label></div><input class="input" name="phymapping.describe" style="width:130px;" placeholder="请填写描述">
	      <div class="label"><label>状态:</label></div><input class="input" name="phymapping.status" style="width:130px;" placeholder="请填写状态（工作/保修/待机）">
          <input class="button bg-main" type="button" onclick="postAjax('Phymapping/create')" value="增加物理设备">
</form>
<!--增加时提供的是postAjax接口。JS方法中提供方法路径。form提供id，格式为去掉中间斜杠，如Phymappingcreate。 -->
</td>

<td width="15%">
<form  method="post" id="Equipmentcreate">
	      <input name="is_app" value="1"  type="hidden">	
	      <div class="label"><label>名称</label></div><input class="input" name="equipment.name" style="width:130px;" placeholder="请填写名称">	
	      <div class="label"><label>所在房间号</label></div><input class="input" name="equipment.room_id" style="width:130px;" placeholder="请填写所在房间号">	
	      <div class="label"><label>房内设备序号</label></div><input class="input" name="equipment.num_in_room" style="width:130px;" placeholder="请填写房内设备序号">	
	      <div class="label"><label>面板序号</label></div><input class="input" name="equipment.panel_id" style="width:130px;" placeholder="请填写所在面板序号">	
	      <div class="label"><label>设备状态</label></div><input class="input" name="equipment.status" style="width:130px;" placeholder="请填写设备状态（工作/保修/待机）">	
	      <div class="label"><label>设备参数1</label></div><input class="input" name="equipment.param1" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数2</label></div><input class="input" name="equipment.param2" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数3</label></div><input class="input" name="equipment.param3" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数4</label></div><input class="input" name="equipment.param4" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数5</label></div><input class="input" name="equipment.param5" style="width:130px;" placeholder="请填写设备参数">
          <input class="button bg-main" type="button" onclick="postAjax('Equipment/create')" value="增加设备">
</form>

</td>

<td width="15%">
<form method="post" id="Roomcreate">
			<input name="is_app" value="1" type="hidden">
			<div class="label"><label>名称:</label></div><div class="field"><input class="input" name="room.name" style="width:130px;" placeholder="请填写名称"></div>	            
            <div class="label"><label>城市:</label></div><div class="field"><input class="input" name="room.city" style="width:130px;" placeholder="请填写城市"></div>
            <div class="label"><label>环境:</label></div><div class="field"><input class="input" name="room.environment" style="width:130px;" placeholder="请填写环境（酒店/家居/办公室/单品）"></div>
            <div class="label"><label>类型:</label></div><div class="field"><input class="input" name="room.type" style="width:130px;" placeholder="请填写类型（客厅/卧室/办公室/会议室）"></div>
            <div class="label"><label>大楼:</label></div><div class="field"><input class="input" name="room.building" style="width:130px;" placeholder="请填写大楼"></div>
            <div class="label"><label>楼层:</label></div><div class="field"><input class="input" name="room.floor" style="width:130px;" placeholder="请填写楼层"></div>
            <div class="label"><label>房间序号:</label></div><div class="field"><input class="input" name="room.num_in_floor" style="width:130px;" placeholder="请填写层中编号"></div>
            <input class="button bg-main" type="button" onclick="postAjax('Room/create')" value="增加房间">
            
</form>
</td>

<td width="15%">
<form method="post" id="Panelcreate">
			<input name="is_app" value="1" type="hidden">	
            <div class="label"><label>面板名称:</label></div><div class="field"><input class="input" name="panel.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>面板类型:</label></div><div class="field"><input class="input" name="panel.type" style="width:130px;" placeholder="请填写类型"></div>
            <input class="button bg-main" type="button" onclick="postAjax('Panel/create')" value="增加面板">
</form>
</td>

<td width="15%">
<form method="post" id="Scenecreate">
			<input name="is_app" value="1" type="hidden">	
            <div class="label"><label>场景名称:</label></div><div class="field"><input class="input" name="scene.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>图标id:</label></div><div class="field"><input class="input" name="scene.image_id" style="width:130px;" placeholder="请填写图标id"></div>	
              <input class="button bg-main" type="button" onclick="postAjax('Scene/create')" value="增加情景">
              
</form>
</td>

<td width="15%">
<form method="post" id="Sceneconfigcreate">
			<input name="is_app" value="1" type="hidden">	
        
			<div class="label"><label>场景编号:</label></div><div class="field"><input class="input" name="sceneconfig.scene_id" style="width:130px;" placeholder="请填写场景id"></div>
            <div class="label"><label>设备编号:</label></div><div class="field"><input class="input" name="sceneconfig.equipment_id" style="width:130px;" placeholder="请填写设备编号"></div>
            <div class="label"><label>状态:</label></div><div class="field"><input class="input" name="sceneconfig.status" style="width:130px;" placeholder="请填写状态"></div>
            <div class="label"><label>设备参数1:</label></div><div class="field"><input class="input" name="sceneconfig.param1" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数2:</label></div><div class="field"><input class="input" name="sceneconfig.param2" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数3:</label></div><div class="field"><input class="input" name="sceneconfig.param3" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数4:</label></div><div class="field"><input class="input" name="sceneconfig.param4" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数5:</label></div><div class="field"><input class="input" name="sceneconfig.param5" style="width:130px;" placeholder="请填写设备参数"></div>
               <input class="button bg-main" type="button" onclick="postAjax('Sceneconfig/create')" value="增加情景情景">
</form>
</td>

<td width="15%">
<form method="post" id="Netctlcreate">
        <input name="is_app" value = "1" type="hidden">
        <div class="label"><label>ip地址:</label></div><input class="input" name="netcontroller.ip_address" style="width:130px;" placeholder="请填写IP地址">
        <div class="label"><label>端口:</label></div><input class="input" name="netcontroller.port" style="width:130px;" placeholder="请填写端口">
        <div class="label"><label>main:</label></div><input class="input" name="netcontroller.main" style="width:130px;" placeholder="请填写main">
        <div class="label"><label>地址:</label></div><input class="input" name="netcontroller.address" style="width:130px;" placeholder="请填写地址">
        <div class="label"><label>域名:</label></div><input class="input" name="netcontroller.domain" style="width:130px;" placeholder="请填写域名">
        <div class="label"><label>net_select:</label></div><input class="input" name="netcontroller.net_select" style="width:130px;" placeholder="请填写net_select">
        <input class="button bg-main" type="button" onclick="postAjax('Netctl/create')" value="增加网关">
        
</form>
</td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">

<form  method="post" id="Phymappingupdate">
	      <input class="input" name="is_app" value="1" type="hidden">	
	       <div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写物理设备主键">
          <div class="label"><label>所属设备id:</label></div><input class="input" name="phymapping.loc_id" style="width:130px;" placeholder="请填写所属设备id">	
	      <div class="label"><label>物理地址:</label></div><input class="input" name="phymapping.phy_addr" style="width:130px;" placeholder="请填写物理地址">	
	      <div class="label"><label>mac地址:</label></div><input class="input" name="phymapping.mac_addr" style="width:130px;" placeholder="请填写mac地址">	
	      <div class="label"><label>类型:</label></div><input class="input" name="phymapping.type" style="width:130px;" placeholder="请填写类型">	
	      <div class="label"><label>线路:</label></div><input class="input" name="phymapping.route" style="width:130px;" placeholder="请填写线路">	
	      <div class="label"><label>实线虚线:</label></div><input class="input" name="phymapping.tag" style="width:130px;" placeholder="请填写实线/虚线">
	      <div class="label"><label>描述:</label></div><input class="input" name="phymapping.describe" style="width:130px;" placeholder="请填写描述">
	      <div class="label"><label>状态:</label></div><input class="input" name="phymapping.status" style="width:130px;" placeholder="请填写状态（工作/保修/待机）">
          <input class="button bg-main" type="button" onclick="postAjax('Phymapping/update')" value="修改物理设备">
</form>
<!--修改时提供的是postAjaxId接口。JS方法中提供方法路径。form提供id，格式为去掉中间斜杠，如Phymappingupdate。并且增加一个
为form的id后加id两个字母的input代表需要修改设备的主键，如Phymappingupdateid。-->
</td>

<td width="15%">
<form  method="post" id="Equipmentupdate">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写设备主键" >
	      <div class="label"><label>名称</label></div><input class="input" name="equipment.name" style="width:130px;" placeholder="请填写名称">	
	      <div class="label"><label>所在房间号</label></div><input class="input" name="equipment.room_id" style="width:130px;" placeholder="请填写所在房间号">	
	      <div class="label"><label>房内设备序号</label></div><input class="input" name="equipment.num_in_room" style="width:130px;" placeholder="请填写房内设备序号">	
	      <div class="label"><label>面板序号</label></div><input class="input" name="equipment.panel_id" style="width:130px;" placeholder="请填写所在面板序号">	
	      <div class="label"><label>设备状态</label></div><input class="input" name="equipment.status" style="width:130px;" placeholder="请填写设备状态（工作/保修/待机）">	
	      <div class="label"><label>设备参数1</label></div><input class="input" name="equipment.param1" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数2</label></div><input class="input" name="equipment.param2" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数3</label></div><input class="input" name="equipment.param3" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数4</label></div><input class="input" name="equipment.param4" style="width:130px;" placeholder="请填写设备参数">
	      <div class="label"><label>设备参数5</label></div><input class="input" name="equipment.param5" style="width:130px;" placeholder="请填写设备参数">
	       <input class="button bg-main" type="button" onclick="postAjax('Equipment/update')" value="修改设备">
	     
   
</form>
</td>

<td width="15%">
   <form method="post" id="Roomupdate">
			<input class="input" name="is_app" value="1" type="hidden">	
			<div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写房间主键" >
         <div class="label"><label>名称:</label></div><div class="field"><input class="input" name="room.name" style="width:130px;" placeholder="请填写名称"></div>	            
            <div class="label"><label>城市:</label></div><div class="field"><input class="input" name="room.city" style="width:130px;" placeholder="请填写城市"></div>
            <div class="label"><label>环境:</label></div><div class="field"><input class="input" name="room.environment" style="width:130px;" placeholder="请填写环境（酒店/家居/办公室/单品）"></div>
            <div class="label"><label>类型:</label></div><div class="field"><input class="input" name="room.type" style="width:130px;" placeholder="请填写类型（客厅/卧室/办公室/会议室）"></div>
            <div class="label"><label>大楼:</label></div><div class="field"><input class="input" name="room.building" style="width:130px;" placeholder="请填写大楼"></div>
            <div class="label"><label>楼层:</label></div><div class="field"><input class="input" name="room.floor" style="width:130px;" placeholder="请填写楼层"></div>
            <div class="label"><label>房间序号:</label></div><div class="field"><input class="input" name="room.num_in_floor" style="width:130px;" placeholder="请填写层中编号"></div>
            
            <input class="button bg-main" type="button" onclick="postAjax('Room/update')" value="修改房间">
     </form>
</td>

<td width="15%">
     <form method="post" id="Panelupdate">
     
			<input class="input" name="is_app" value="1" type="hidden">	
			<div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写面板主键" >
           <div class="label"><label>面板名称:</label></div><div class="field"><input class="input" name="panel.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>面板类型:</label></div><div class="field"><input class="input" name="panel.type" style="width:130px;" placeholder="请填写类型"></div>
               <input class="button bg-main" type="button" onclick="postAjax('Panel/update')" value="修改面板">
               
     </form>
</td>

<td width="15%">
     <form method="post" id="Sceneupdate">
			<input class="input" name="is_app" value="1"  type="hidden">	
			<div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写场景主键" >
         <div class="label"><label>场景名称:</label></div><div class="field"><input class="input" name="scene.name" style="width:130px;" placeholder="请填写名称"></div>
            <div class="label"><label>图标id:</label></div><div class="field"><input class="input" name="scene.image_id" style="width:130px;" placeholder="请填写图标id"></div>
              <input class="button bg-main" type="button" onclick="postAjax('Scene/update')" value="修改场景">
     </form>
</td>

<td width="15%">

     <form method="post" id="Sceneconfigupdate">

			<input class="input" name="is_app" value="1"  type="hidden">
				<div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写情景主键" >	
				
			<div class="label"><label>场景编号:</label></div><div class="field"><input class="input" name="sceneconfig.scene_id" style="width:130px;" placeholder="请填写场景id"></div>
            <div class="label"><label>设备编号:</label></div><div class="field"><input class="input" name="sceneconfig.equipment_id" style="width:130px;" placeholder="请填写设备编号"></div>
            <div class="label"><label>状态:</label></div><div class="field"><input class="input" name="sceneconfig.status" style="width:130px;" placeholder="请填写状态"></div>
            <div class="label"><label>设备参数1:</label></div><div class="field"><input class="input" name="sceneconfig.param1" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数2:</label></div><div class="field"><input class="input" name="sceneconfig.param2" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数3:</label></div><div class="field"><input class="input" name="sceneconfig.param3" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数4:</label></div><div class="field"><input class="input" name="sceneconfig.param4" style="width:130px;" placeholder="请填写设备参数"></div>
            <div class="label"><label>设备参数5:</label></div><div class="field"><input class="input" name="sceneconfig.param5" style="width:130px;" placeholder="请填写设备参数"></div>
               
               <input class="button bg-main" type="button" onclick="postAjax('Sceneconfig/update')" value="修改情景配置">
             
     </form>
</td>

<td width="15%">

<form method="post" id="Netctlupdate">

        <input class="input" name="is_app" value="1" type="hidden">
        
        <div class="label"><label>id:</label></div><input  class="input" name="id" style="width:130px;" placeholder="请填写网关主键">	
        
         <div class="label"><label>ip地址:</label></div><input class="input" name="netcontroller.ip_address" style="width:130px;" placeholder="请填写IP地址">
        <div class="label"><label>端口:</label></div><input class="input" name="netcontroller.port" style="width:130px;" placeholder="请填写端口">
        <div class="label"><label>main:</label></div><input class="input" name="netcontroller.main" style="width:130px;" placeholder="请填写main">
        <div class="label"><label>地址:</label></div><input class="input" name="netcontroller.address" style="width:130px;" placeholder="请填写地址">
        <div class="label"><label>域名:</label></div><input class="input" name="netcontroller.domain" style="width:130px;" placeholder="请填写域名">
        <div class="label"><label>net_select:</label></div><input class="input" name="netcontroller.net_select" style="width:130px;" placeholder="请填写net_select">
    
    
    <input class="button bg-main" type="button" onclick="postAjax('Netctl/update')" value="修改网关">
 </form>
</td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">

<form method="post" id="Phymappingdelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Phymapping/delete')" value="删除物理设备">
</form>
<!--修改时提供的是postAjaxId接口。JS方法中提供方法路径。form提供id，格式为去掉中间斜杠，如Phymappingdelete。并且增加一个
为form的id后加id两个字母的input代表需要修改设备的主键，如Phymappingdeleteid。-->
</td>

<td width="15%">
<form  id="Equipmentdelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Equipment/delete')" value="删除设备">
</form>
</td>

<td width="15%">
<form  id="Roomdelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Room/delete')" value="删除房间">
</form>
</td>

<td width="15%">
<form  id="Paneldelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Panel/delete')" value="删除面板">
</form>
</td>

<td width="15%">
<form  id="Scenedelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Scene/delete')" value="删除情景">
</form>
</td>

<td width="15%">
<form  id="Sceneconfigdelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id"  style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Sceneconfig/delete')" value="删除情景配置">
</form>
</td>

<td width="15%">
<form  id="Netctldelete">
	      <input class="input" name="is_app" value="1" type="hidden">	
	      <div class="label"><label>主键:</label></div>
	      <input  class="input" name="id" style="width:130px;" placeholder="请输入主键" >
          <input class="button bg-main" type="button" onclick="postAjax('Netctl/delete')" value="删除网关">
</form>
</td>
</tr>
<tr><td>&nbsp; <td></tr>
<tr>
<td width="15%">

<form  method="post" id="PhymappingdeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Phymapping/deleteAll')" value="批量删除物理设备">
</form>
<!--增加时提供的是postAjax接口。JS方法中提供方法路径。form提供id，格式为去掉中间斜杠，如Phymappingcreate。 -->
</td>

<td width="15%">
<form  method="post" id="EquipmentdeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id" style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Equipment/deleteAll')" value="批量删除设备">
</form>

</td>

<td width="15%">
<form  method="post" id="RoomdeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Room/deleteAll')" value="批量删除房间">
</form>
</td>

<td width="15%">
<form  method="post" id="PaneldeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Panel/deleteAll')" value="批量删除面板">
</form>
</td>

<td width="15%">
<form  method="post" id="ScenedeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1"  type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Scene/deleteAll')" value="批量删除情景">
</form>
</td>

<td width="15%">
<form  method="post" id="SceneconfigdeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id"  style="width:130px;" placeholder="请输入主键" >	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Sceneconfig/deleteAll')" value="批量删除情景配置">
</form>
</td>

<td width="15%">
<form  method="post" id="NetctldeleteAll">
<div class="label"><label>主键:</label></div>
		  <input class="input" name="id" style="width:130px;" placeholder="请输入主键" >	
		  <input class="input" name="id" style="width:130px;" placeholder="请输入主键">	
	      <input class="input" name="is_app" value="1" type="hidden">	
          <input class="button bg-main" type="button" onclick="postAjaxId('Netctl/deleteAll')" value="批量删除网关">
</form>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
